home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Shareware / Programare / sharp / wwwSharp_setup.exe / {app} / Examples / HTA Properties / HtaProperties.wsits (.txt) < prev    next >
Windows Compiled HTML Help File  |  2004-01-25  |  10KB  |  69 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
  2. <HTML>
  3. <HEAD>
  4.   <TITLE>HTA Demo</TITLE>
  5.   <HTA:APPLICATION ID="oHTA"
  6.      APPLICATIONNAME="myApp"
  7.      BORDER="thick"
  8.      BORDERSTYLE="normal"
  9.      CAPTION="yes"
  10.      ICON="graphics/face01.ico"
  11.      MAXIMIZEBUTTON="yes"
  12.      MINIMIZEBUTTON="yes"
  13.      SHOWINTASKBAR="no"
  14.      SINGLEINSTANCE="no"
  15.      SYSMENU="yes"
  16.      VERSION="1.0"
  17.      WINDOWSTATE="normal"
  18.   ></HTA:APPLICATION>
  19.  
  20.   <SCRIPT>
  21.  
  22.   /* This function also gets the value of commandLine,
  23.      which cannot be set as an attribute  */
  24.    
  25.   function fnShowProp()
  26.   {
  27.     sTempStr = "applicationName  = " + oHTA.applicationName + "\n" + 
  28.                "border           = " + oHTA.border          + "\n" +
  29.                "borderStyle      = " + oHTA.borderStyle     + "\n" + 
  30.                "caption          = " + oHTA.caption         + "\n" +
  31.                "commandLine      = " + oHTA.commandLine     + "\n" +
  32.                "icon             = " + oHTA.icon            + "\n" +
  33.                "maximizeButton   = " + oHTA.maximizeButton  + "\n" +
  34.                "minimizeButton   = " + oHTA.minimizeButton  + "\n" + 
  35.                "showInTaskBar    = " + oHTA.showInTaskBar   + "\n" +
  36.                "singleInstance   = " + oHTA.singleInstance  + "\n" +  
  37.                "sysMenu          = " + oHTA.sysMenu         + "\n" + 
  38.                "version          = " + oHTA.version         + "\n" + 
  39.                "windowState      = " + oHTA.windowState     + "\n" ;
  40.           
  41.     oPre.innerText = sTempStr;          
  42.   }
  43.   </SCRIPT>
  44. </HEAD>
  45. <BODY">
  46. <P>The attribute values for this HTA are listed below. Click the button to get the corresponding property values.</P>
  47. <PRE CLASS="clsCode"><HTA:APPLICATION ID="oHTA"
  48.      APPLICATIONNAME="myApp"
  49.      BORDER="thin"
  50.      BORDERSTYLE="normal"
  51.      CAPTION="yes"
  52.      ICON="graphics/face01.ico"
  53.      MAXIMIZEBUTTON="yes"
  54.      MINIMIZEBUTTON="yes"
  55.      SHOWINTASKBAR="no"
  56.      SINGLEINSTANCE="no"
  57.      SYSMENU="yes"
  58.      VERSION="1.0"
  59.      WINDOWSTATE="maximize"
  60.   >
  61.   </PRE>
  62.   <BUTTON onclick="fnShowProp()">Retrieve HTA Property Values</BUTTON>
  63.   <PRE ID="oPre">  
  64.   </PRE>
  65.   <HR>
  66.   <BUTTON onclick="window.close()">Quit Application</BUTTON>
  67. </BODY>
  68. </HTML>
  69.